package com.example.cdctest.service;

import com.example.cdctest.pojo.Admin;
import com.example.cdctest.pojo.Knowledge;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface KnowledgeService extends CommonService<Knowledge> {
    PageInfo<Knowledge> getAllKnowledge(int pageNum, int pageSize, String content);

    Knowledge getKnowledgeById(int knowledgeId);

    //取出所有疾控知识
    List<Knowledge> getKnowledge();
     //停用启用疾控知识
    void updateEnable(Integer id);
    //添加疾控知识
    void knowledgeAdd(Knowledge knowledge);
    //修改疾控知识讲堂的答案
    void updatedaan(Knowledge knowledge);
    //删除疾控知识
    void deleteKnowledge(Integer id);
}
